import { reactive } from "vue";

export default function useData() {
  const pageData = reactive({
    columnData: [
      {
        label: "编号",
        prop: "no",
        width: "80px",
        sortable: true
      },
      {
        label: "线路",
        prop: "linename",
        width: "80"
      },
      // {
      //   label: "分组名称",
      //   prop: "name",
      //   width: "auto"
      // },
      {
        label: "vlan id",
        prop: "vlanid",
        width: "100"
      },
      {
        label: "节点IP",
        prop: "iprange",
        width: "auto"
      },
      {
        label: "IP变换频率",
        prop: "ipPercent",
        width: "150"
      },
      {
        label: "端口",
        prop: "destport",
        width: "80"
      },
      {
        label: "端口变换频率",
        prop: "portPercent",
        width: "150"
      },
      // {
      //   label: "节点类型",
      //   prop: "type",
      //   width: "auto"
      // },
      {
        label: "操作",
        prop: "operation",
        width: "220"
      }
    ]
  });
  return {
    pageData
  };
}
